package com.yangye.pisystem.domain;

import com.yangye.picommon.core.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;

@Table(name = "sys_router")
@Data
public class SysRouter extends BaseEntity {
    /**
     * 上级路由id
     */
    @Column(name = "parent_id")
    private Long parentId;

    /**
     * 路由名称
     */
    private String name;

    /**
     * 路由路径
     */
    private String path;

    /**
     * 路由重定向路径
     */
    private String redirect;

    /**
     * 路由组件
     */
    private String component;

    /**
     * 是否缓存页面
     */
    @Column(name = "keep_alive")
    private String keepAlive;

    /**
     * 备注
     */
    private String remarks;
}